﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdminLoginControl.ascx.cs" Inherits="SPCFMedicineInformer.UserControls.AdminLoginControl" %>

<div style="padding-top:100px;">
    <asp:Login ID="Login1" runat="server" onauthenticate="Login1_Authenticate" CssClass="admin-login">    
     <LayoutTemplate>
     <div id="login-box">
                <H2>Admin Login</H2>
                
                <br />
                <br />
                <div id="login-box-name" style="margin-top:20px;">UserName:</div>
                <div id="login-box-field" style="margin-top:20px;">
                    <asp:TextBox ID="UserName" CssClass="form-login" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                        ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                        ToolTip="User Name is required." ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>

                </div>
            
                <div id="login-box-name">Password:</div>
                <div id="login-box-field">
                    <asp:TextBox ID="Password" runat="server" CssClass="form-login"  TextMode="Password" ></asp:TextBox>      
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                        ControlToValidate="Password" ErrorMessage="Password is required." 
                                        ToolTip="Password is required." ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                          
                </div>
                <br />
<%--                <div class="login-box-options">
                    <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />                
                </div>--%>
                <br />
                <br />
                <asp:ImageButton ID="LoginButton" runat="server" CommandName="Login" Text=" "  
                    ImageUrl="~/images/login-btn.png" Width="103" Height="42" style="margin-left:90px;"
                    ValidationGroup="ctl00$Login1" />            
            </div>
     </LayoutTemplate>               
    </asp:Login>
</div>